<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2019/12/9
  Time: 21:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>application的使用</title>
</head>
<body>
<% application.setAttribute("city","北京");%>
<% application.setAttribute("postcode",10000);%>

城市:<%=application.getAttribute("city")%><br>
编码:<%=application.getAttribute("postcode")%>
</body>
</html>
